Skip to content

Create a role seeding script - bsl 42#34

Merged
rohanarcot merged 2 commits intomainfrom
BSL-42-Role-Seeding-Script-(Super-Admin-/-Reviewer-/-Ambassador)
Apr 3, 2026
Merged

Create a role seeding script - bsl 42#34
rohanarcot merged 2 commits intomainfrom
BSL-42-Role-Seeding-Script-(Super-Admin-/-Reviewer-/-Ambassador)

Conversation

@Thaarak
Copy link
Copy Markdown
Contributor

@Thaarak Thaarak commented Mar 3, 2026

No description provided.

@Thaarak Thaarak requested a review from rohanarcot March 3, 2026 12:27
@Thaarak Thaarak changed the title Create a role seeding script Create a role seeding script - bsl 42 Mar 3, 2026
Copy link
Copy Markdown
Collaborator

@rohanarcot rohanarcot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@rohanarcot rohanarcot merged commit 960dde6 into main Apr 3, 2026
@rohanarcot rohanarcot deleted the BSL-42-Role-Seeding-Script-(Super-Admin-/-Reviewer-/-Ambassador) branch April 3, 2026 05:57
DarshikaMishra pushed a commit that referenced this pull request Apr 14, 2026
DarshikaMishra pushed a commit that referenced this pull request Apr 14, 2026
implemented shared UI components
rohanarcot added a commit that referenced this pull request Apr 14, 2026
* added apply/organization page

* added org application UI, created route and form fields w/ field validation

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented applications get request with filters (#26)

* implemented applications get request with filters

* added dynamic id path

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>

* Bsl 35 get application by id (#27)

* implemented applications get request with filters

* added dynamic id path

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* Create a role seeding script (#34)

implemented shared UI components

* Bsl 24 shared UI components (#33)

* Added about and leaders page routes

* Created reusable leader card and tabswitch components

* UI changes

* Fixed the issue of the leader page not showing

* Removed use client while ensuring animations and also changed image paths

* rohan requested changes made

---------

Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Co-authored-by: Thaarak <91105460+Thaarak@users.noreply.github.com>

* Create Admin Auth UI (#40)

* Change admin login ui to google

* Update admin dashboard ui

* chore: fix admin ui bugs

---------

Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* added apply/organization page

WIP

* added org application UI, created route and form fields w/ field validation

WIP

* made changes upto implementing shared UI components

* implemented all changes + shared UI components

---------

Co-authored-by: Darshika Mishra <darshika@Darshikas-MacBook-Pro.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: Junny20 <liujohn4467@gmail.com>
Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>
Co-authored-by: Thaarak Sriram <91105460+Thaarak@users.noreply.github.com>
Co-authored-by: shreyaanchhabra <chhabrashreyaan@gmail.com>
Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
rohanarcot added a commit that referenced this pull request Apr 14, 2026
* added apply/team ui, form renders and validates

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented applications get request with filters (#26)

* implemented applications get request with filters

* added dynamic id path

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>

* Bsl 35 get application by id (#27)

* implemented applications get request with filters

* added dynamic id path

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* Create a role seeding script (#34)

* Bsl 24 shared UI components (#33)

* Added about and leaders page routes

* Created reusable leader card and tabswitch components

* UI changes

* Fixed the issue of the leader page not showing

* Removed use client while ensuring animations and also changed image paths

* rohan requested changes made

---------

Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Co-authored-by: Thaarak <91105460+Thaarak@users.noreply.github.com>

* Create Admin Auth UI (#40)

* Change admin login ui to google

* Update admin dashboard ui

* chore: fix admin ui bugs

---------

Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* applied most PR comments, still need to implement reusable components

* implemented changes requestes; used shared UI components

* added submitter name and email form fields

---------

Co-authored-by: Darshika Mishra <darshika@Darshikas-MacBook-Pro.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: Junny20 <liujohn4467@gmail.com>
Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>
Co-authored-by: Thaarak Sriram <91105460+Thaarak@users.noreply.github.com>
Co-authored-by: shreyaanchhabra <chhabrashreyaan@gmail.com>
Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Junny20 added a commit that referenced this pull request Apr 16, 2026
* added apply/organization page

* added org application UI, created route and form fields w/ field validation

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented applications get request with filters (#26)

* implemented applications get request with filters

* added dynamic id path

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>

* Bsl 35 get application by id (#27)

* implemented applications get request with filters

* added dynamic id path

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* Create a role seeding script (#34)

implemented shared UI components

* Bsl 24 shared UI components (#33)

* Added about and leaders page routes

* Created reusable leader card and tabswitch components

* UI changes

* Fixed the issue of the leader page not showing

* Removed use client while ensuring animations and also changed image paths

* rohan requested changes made

---------

Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Co-authored-by: Thaarak <91105460+Thaarak@users.noreply.github.com>

* Create Admin Auth UI (#40)

* Change admin login ui to google

* Update admin dashboard ui

* chore: fix admin ui bugs

---------

Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* added apply/organization page

WIP

* added org application UI, created route and form fields w/ field validation

WIP

* made changes upto implementing shared UI components

* implemented all changes + shared UI components

---------

Co-authored-by: Darshika Mishra <darshika@Darshikas-MacBook-Pro.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: Junny20 <liujohn4467@gmail.com>
Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>
Co-authored-by: Thaarak Sriram <91105460+Thaarak@users.noreply.github.com>
Co-authored-by: shreyaanchhabra <chhabrashreyaan@gmail.com>
Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Junny20 added a commit that referenced this pull request Apr 16, 2026
* added apply/team ui, form renders and validates

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented applications get request with filters (#26)

* implemented applications get request with filters

* added dynamic id path

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>

* Bsl 35 get application by id (#27)

* implemented applications get request with filters

* added dynamic id path

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* Create a role seeding script (#34)

* Bsl 24 shared UI components (#33)

* Added about and leaders page routes

* Created reusable leader card and tabswitch components

* UI changes

* Fixed the issue of the leader page not showing

* Removed use client while ensuring animations and also changed image paths

* rohan requested changes made

---------

Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Co-authored-by: Thaarak <91105460+Thaarak@users.noreply.github.com>

* Create Admin Auth UI (#40)

* Change admin login ui to google

* Update admin dashboard ui

* chore: fix admin ui bugs

---------

Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* applied most PR comments, still need to implement reusable components

* implemented changes requestes; used shared UI components

* added submitter name and email form fields

---------

Co-authored-by: Darshika Mishra <darshika@Darshikas-MacBook-Pro.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: Junny20 <liujohn4467@gmail.com>
Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>
Co-authored-by: Thaarak Sriram <91105460+Thaarak@users.noreply.github.com>
Co-authored-by: shreyaanchhabra <chhabrashreyaan@gmail.com>
Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Junny20 added a commit that referenced this pull request Apr 22, 2026
* added apply/organization page

* added org application UI, created route and form fields w/ field validation

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented applications get request with filters (#26)

* implemented applications get request with filters

* added dynamic id path

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>

* Bsl 35 get application by id (#27)

* implemented applications get request with filters

* added dynamic id path

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* Create a role seeding script (#34)

implemented shared UI components

* Bsl 24 shared UI components (#33)

* Added about and leaders page routes

* Created reusable leader card and tabswitch components

* UI changes

* Fixed the issue of the leader page not showing

* Removed use client while ensuring animations and also changed image paths

* rohan requested changes made

---------

Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Co-authored-by: Thaarak <91105460+Thaarak@users.noreply.github.com>

* Create Admin Auth UI (#40)

* Change admin login ui to google

* Update admin dashboard ui

* chore: fix admin ui bugs

---------

Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* added apply/organization page

WIP

* added org application UI, created route and form fields w/ field validation

WIP

* made changes upto implementing shared UI components

* implemented all changes + shared UI components

---------

Co-authored-by: Darshika Mishra <darshika@Darshikas-MacBook-Pro.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: Junny20 <liujohn4467@gmail.com>
Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>
Co-authored-by: Thaarak Sriram <91105460+Thaarak@users.noreply.github.com>
Co-authored-by: shreyaanchhabra <chhabrashreyaan@gmail.com>
Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Junny20 added a commit that referenced this pull request Apr 22, 2026
* added apply/team ui, form renders and validates

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented applications get request with filters (#26)

* implemented applications get request with filters

* added dynamic id path

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>

* Bsl 35 get application by id (#27)

* implemented applications get request with filters

* added dynamic id path

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* Create a role seeding script (#34)

* Bsl 24 shared UI components (#33)

* Added about and leaders page routes

* Created reusable leader card and tabswitch components

* UI changes

* Fixed the issue of the leader page not showing

* Removed use client while ensuring animations and also changed image paths

* rohan requested changes made

---------

Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Co-authored-by: Thaarak <91105460+Thaarak@users.noreply.github.com>

* Create Admin Auth UI (#40)

* Change admin login ui to google

* Update admin dashboard ui

* chore: fix admin ui bugs

---------

Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* applied most PR comments, still need to implement reusable components

* implemented changes requestes; used shared UI components

* added submitter name and email form fields

---------

Co-authored-by: Darshika Mishra <darshika@Darshikas-MacBook-Pro.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: Junny20 <liujohn4467@gmail.com>
Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>
Co-authored-by: Thaarak Sriram <91105460+Thaarak@users.noreply.github.com>
Co-authored-by: shreyaanchhabra <chhabrashreyaan@gmail.com>
Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
rohanarcot added a commit that referenced this pull request Apr 23, 2026
* implemented applications get request with filters

* added dynamic id path

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* BSL-26 org application UI (#23)

* added apply/organization page

* added org application UI, created route and form fields w/ field validation

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented applications get request with filters (#26)

* implemented applications get request with filters

* added dynamic id path

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>

* Bsl 35 get application by id (#27)

* implemented applications get request with filters

* added dynamic id path

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* Create a role seeding script (#34)

implemented shared UI components

* Bsl 24 shared UI components (#33)

* Added about and leaders page routes

* Created reusable leader card and tabswitch components

* UI changes

* Fixed the issue of the leader page not showing

* Removed use client while ensuring animations and also changed image paths

* rohan requested changes made

---------

Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Co-authored-by: Thaarak <91105460+Thaarak@users.noreply.github.com>

* Create Admin Auth UI (#40)

* Change admin login ui to google

* Update admin dashboard ui

* chore: fix admin ui bugs

---------

Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* added apply/organization page

WIP

* added org application UI, created route and form fields w/ field validation

WIP

* made changes upto implementing shared UI components

* implemented all changes + shared UI components

---------

Co-authored-by: Darshika Mishra <darshika@Darshikas-MacBook-Pro.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: Junny20 <liujohn4467@gmail.com>
Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>
Co-authored-by: Thaarak Sriram <91105460+Thaarak@users.noreply.github.com>
Co-authored-by: shreyaanchhabra <chhabrashreyaan@gmail.com>
Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>

* bsl-28-team-application-ui (#30)

* added apply/team ui, form renders and validates

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented applications get request with filters (#26)

* implemented applications get request with filters

* added dynamic id path

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>

* Bsl 35 get application by id (#27)

* implemented applications get request with filters

* added dynamic id path

* RBAC + /admin Route Protection Middleware (#25)

* Assign user role to JWT + Session

* Add centralized role helper

* resolve react/react-dom version mismatch

* Split auth config into auth.config.ts and auth.ts

* Replace Prisma Role enum with plain string enum in rbac

* Protect /admin routes with auth + role check

* Create access denied admin page

* Update access denied page to have signout button

* Make role optional in next-auth.d.ts

* Add edge-safe auth + Fix path-based role access control

* Centralize auth callbacks and migrate to prisma singleton

* implemented patch api endpoint for app status

* changed admin applications page

* added dynamic admin id page

* added requested changes

* added requested changes

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* Create a role seeding script (#34)

* Bsl 24 shared UI components (#33)

* Added about and leaders page routes

* Created reusable leader card and tabswitch components

* UI changes

* Fixed the issue of the leader page not showing

* Removed use client while ensuring animations and also changed image paths

* rohan requested changes made

---------

Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Co-authored-by: Thaarak <91105460+Thaarak@users.noreply.github.com>

* Create Admin Auth UI (#40)

* Change admin login ui to google

* Update admin dashboard ui

* chore: fix admin ui bugs

---------

Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* applied most PR comments, still need to implement reusable components

* implemented changes requestes; used shared UI components

* added submitter name and email form fields

---------

Co-authored-by: Darshika Mishra <darshika@Darshikas-MacBook-Pro.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: Junny20 <liujohn4467@gmail.com>
Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>
Co-authored-by: Thaarak Sriram <91105460+Thaarak@users.noreply.github.com>
Co-authored-by: shreyaanchhabra <chhabrashreyaan@gmail.com>
Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>

* Bsl 27 org app submit api (#29)

* added apply/organization page

* added org application UI, created route and form fields w/ field validation

* added org/route.ts to handle post request, also fixed duplicate Event model in schema.prisma and another typo

* fixed branch details, only added org/route.ts to handle api post

* made requested changes

* skill needed

---------

Co-authored-by: Darshika Mishra <darshika@Darshikas-MacBook-Pro.local>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>

* added changes requested (#31)

Co-authored-by: Darshika Mishra <darshika@Darshikas-MacBook-Pro.local>

* added all dependencies

* changed params.id to id

* use hasRole for auth, await params in route handlers, add try-catch to GET, fix email input type, remove Card wrapper

---------

Co-authored-by: Junnian Liu <liuj4467@Junnians-MacBook-Air.local>
Co-authored-by: rohanarcot <rohanarcot133@gmail.com>
Co-authored-by: DarshikaMishra <darshika.mishra@gmail.com>
Co-authored-by: Darshika Mishra <darshika@Darshikas-MacBook-Pro.local>
Co-authored-by: Gavin Lin <gavinlin24@gmail.com>
Co-authored-by: Thaarak Sriram <91105460+Thaarak@users.noreply.github.com>
Co-authored-by: shreyaanchhabra <chhabrashreyaan@gmail.com>
Co-authored-by: Shreyaan Chhabra <shreyaanchhabra@Shreyaans-MacBook-Air.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants